function datetime() {
    var now = new Date();
    document.getElementById("time1").value = now.getFullYear() + "-"
        + (now.getMonth() + 1) + "-" + now.getDate();

    document.getElementById("time").value = now.getFullYear() + "年"
        + (now.getMonth() + 1) + "月" + now.getDate()+"日 ";
    document.getElementById("time").value += " " + now.getHours() + ":"
        + now.getMinutes()/* + ":" + now.getSeconds()*/;

}
window.setInterval("datetime()");
